/**
 * Created by CP_wanxianghui on 2017/7/21.
 */
import constant from './constant'
var LocalDAO = {};
/**
 * 获取用户代码
 */
LocalDAO.getUserCode = function () {
  return localStorage.getItem(constant.Storage.USER_CODE);
};
/**
 * 获取昵称
 */
// LocalDAO.getNickname = function () {
//   return localStorage.getItem(constant.Storage.NICKNAME);
// };
/**
 * 设置用户代码
 */
LocalDAO.setUserCode = function (userCode) {
  localStorage.setItem(constant.Storage.USER_CODE, userCode);
};
/**
 * 设置昵称
 */
// LocalDAO.setNickname = function (nickname) {
//   localStorage.setItem(Storage.NICKNAME, nickname);
// };
export default LocalDAO